package top.zywork.vo;

import lombok.*;

import java.math.BigDecimal;
import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * RolePermissionVO值对象类<br/>
 *
 * 创建于2019-06-26<br/>
 *
 * @author http://zywork.top 王振宇
 * @version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
public class RolePermissionVO extends BaseVO {

    private static final long serialVersionUID = -9223372035367592109L;

    /*
	 * t_role表的字段对应的属性
	 */
	/**
	 * 角色编号
	 */
	private Long roleId;
	/**
	 * 角色标题
	 */
	@NotBlank(message = "此项是必须项")
	@Size(min = 1, max = 50, message = "必须是1-50个字符")
	private String roleTitle;
	/*
	 * t_permission表的字段对应的属性
	 */
	/**
	 * 权限编号
	 */
	@NotNull(message = "此项是必须项")
	private Long permissionId;
	/**
	 * 权限标题
	 */
	@NotBlank(message = "此项是必须项")
	@Size(min = 1, max = 50, message = "必须是1-50个字符")
	private String permissionTitle;
	/**
	 * 权限字符串
	 */
	@NotBlank(message = "此项是必须项")
	@Size(min = 1, max = 200, message = "必须是1-200个字符")
	private String permissionPermission;
	/**
	 * 权限描述
	 */
	@Size(min = 0, max = 200, message = "必须小于200个字符")
	private String permissionDescription;
	/*
	 * t_role_permission表的字段对应的属性
	 */
	/**
	 * 版本号
	 */
	private Integer rolePermissionVersion;
	/**
	 * 创建时间
	 */
	private Date rolePermissionCreateTime;
	/**
	 * 更新时间
	 */
	private Date rolePermissionUpdateTime;
	
}
